<script setup>
import { ref, onMounted } from "vue";

const data = ref("");

// 挂载时机生命周期函数;
onMounted(() => {
  setTimeout(() => {
    data.value = "小滴课堂";
  }, 100);
});
</script>

<template>
  <div>接口100ms后请求数据:</div>
  <span>{{ data }}</span>
</template>
